package com.learning.platform.controller;

import com.learning.platform.dto.ApiResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 */
@RestController
@RequestMapping("/api/v1/test")
public class TestController {
    
    /**
     * 健康检查接口
     */
    @GetMapping("/health")
    public ResponseEntity<ApiResponse<String>> health() {
        return ResponseEntity.ok(ApiResponse.success("服务运行正常"));
    }
    
    /**
     * 版本信息接口
     */
    @GetMapping("/version")
    public ResponseEntity<ApiResponse<String>> version() {
        return ResponseEntity.ok(ApiResponse.success("v1.0.0"));
    }
}